const STATUS_LIST = [
  {
      label: "待处理",
      value: "WAIT_FINISH"
  },
  {
      label: "进行中",
      value: "PROCESSING"
  },
  {
      label: "已处理",
      value: "FINISH"
  },
  {
      label: "已确认",
      value: "CONFIRMED"
  },
  {
      label: "取消待审核",
      value: "CANCEL_PENDING_APPROVAL"
  },
  {
      label: "变更待审核",
      value: "CHANGE_PENDING_APPROVAL"
  },
  {
      label: "已取消",
      value: "CANCEL"
  },
]

export const listFields = {
    title: {
        label: "任务单号",
        value: "no",
    },
    children: [
        {
            isStatus: true, //状态标记 
            label: "任务状态",
            value: "status",
            statusList: STATUS_LIST
        },
        {
            label: "任务名称",
            value: "strategyNames"
        },
        {
            label: "发起人员",
            value: "createUsername"
        },
        {
            label: "计划时间",
            value: "planInspectionTime"
        },
        {
            label:"班次",
            value:'shiftType'
        }
    ]
}

export const infoFields = {
    title: {
        name: "巡检任务单号",
        field: "no"
    },
    column: [
        {
            name: "任务状态",
            field: "status",
            statusList: STATUS_LIST
        },
        {
            name: "任务名称",
            field: "strategyNames"
        },
        {
            name: "计划时间",
            field: "planInspectionTime"
        },
    ]
}
